package com.my.elasticsearchspringdemo.dao;

import com.my.elasticsearchspringdemo.entity.User;
import org.elasticsearch.index.query.QueryBuilder;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.elasticsearch.core.query.SearchQuery;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Component;

import java.util.Optional;

/**
 * @Description
 * @Author Godzilla
 * @Date 2019/7/6
 * @Version V1.0.0
 * @Update 更新说明
 */
@Component
public interface UserRepository extends ElasticsearchRepository<User,Long>{

}
